import { createApp } from "vue";
import axios from "axios";
import { sum } from "./js/math";
const { priceFormat } = require("./js/format");
import "./util"

import App from "./vue/App";

import "js/element";


if (module.hot) {
  module.hot.accept("./js/element.js", () => {
    console.log("element.js模块儿发生了更新");
  });
}

console.log(sum(20, 30));
console.log(priceFormat());

const app = createApp(App);
app.mount("#app");

console.log("abc");
console.log("Hello Worlde");

axios
  .get("http://localhost:8888/moment")
  .then((res) => {
    console.log(res);
  })
  .catch((e) => {
    console.log(e);
  });
